package com.ruoyi.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Setter
@Getter
@ApiModel
public class ResetPinCodeDto {
    @ApiModelProperty(value = "手机号",hidden = true)
    private String mobile;
    @ApiModelProperty("短信验证码")
    @NotNull(message = "短信验证码不能为空")
    private String smsCode;
    @ApiModelProperty("提现密码（正则：/^[a-zA-Z0-9]{6,10}$/）")
    @NotNull(message = "短信验证码不能为空")
    @Pattern(regexp = "^[a-zA-Z0-9]{6,10}$",message = "请输入正确的密码格式")
    private String pinCode;
    @ApiModelProperty("提现确认密码")
    @Pattern(regexp = "^[a-zA-Z0-9]{6,10}$",message = "请输入正确的密码格式")
    private String rePinCode;
}
